home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1998 July / WPCJUL98.ISO / DXRS / BUYERS07.DXR / Internal_32_scroll up button.ls < prev    next >
Encoding:
Text File  |  1998-05-11  |  793 b   |  19 lines

  1. on mouseDown
  2.   moveUpReviewList()
  3. end
  4.  
  5. on moveUpReviewList
  6.   global ScrollPosTop, scrollBarLength, scrollIncrements, xl, borderWidth, listOfSelectedReviews, pointerToReviewsList, SpriteList, SpriteForFirstOptionInList, reviewsDisplayed
  7.   if pointerToReviewsList > 1 then
  8.     set pointerToReviewsList to pointerToReviewsList - 1
  9.     set ScrollPosTop to ScrollPosTop - scrollIncrements
  10.     set the rect of sprite (SpriteList + 8) to rect(xl, ScrollPosTop, xl + borderWidth, ScrollPosTop + scrollBarLength)
  11.   end if
  12.   repeat with s = 1 to reviewsDisplayed
  13.     set l to s + pointerToReviewsList - 1
  14.     set currentItem to getAt(listOfSelectedReviews, l)
  15.     set the member of sprite (SpriteForFirstOptionInList + s - 1) to member (currentItem && "graphic text")
  16.     updateStage()
  17.   end repeat
  18. end
  19.